package com.lsy.mapper.interf;

import com.lsy.entity.Flowrecord;
import com.lsy.entity.FlowrecordExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface FlowrecordMapper {
	int countByExample(FlowrecordExample example);

	int deleteByExample(FlowrecordExample example);

	int deleteByPrimaryKey(Integer flowrecordid);

	int insert(Flowrecord record);

	int insertSelective(Flowrecord record);

	List<Flowrecord> selectByExample(FlowrecordExample example);

	Flowrecord selectByPrimaryKey(Integer flowrecordid);

	int updateByExampleSelective(@Param("record") Flowrecord record, @Param("example") FlowrecordExample example);

	int updateByExample(@Param("record") Flowrecord record, @Param("example") FlowrecordExample example);

	int updateByPrimaryKeySelective(Flowrecord record);

	int updateByPrimaryKey(Flowrecord record);

	List<Flowrecord> findByUserId(@Param("userId") int userId, @Param("from") int from, @Param("number") int number);

	int findTotalByUserId(int userId);
}